package Test00;

import java.io.File;
import java.io.FileFilter;
import java.io.FilenameFilter;

public class Test06 {
    public static void main(String[] args) {


        File dir = new File(".");
        if(dir.isDirectory()){
            File[] subs = dir.listFiles(new FileFilter() {
                public boolean accept(File file) {
                    return file.getName().contains("s");
                }
            });
            for (File sub : subs){
                System.out.println(sub.getName());
            }
        }

    }
}
